<?php
namespace Home\Controller;
use Think\Controller;
class ClassController extends BaseController {


    public function index()
    {
        $this->redirect('Class/lists');
    }


    public function info()
    {
        $id=I('id',0,'intval');
        if (session('sid')) {
            $profile=D(CONTROLLER_NAME)->find_by_id($id);
            var_dump($profile);
        } else {
            $this->show('<script>alert("无权查看");</script>');
        }
    }

}